//
//  CSWMyLotteryController.m
//  网易彩票
//
//  Created by MAC on 16/6/5.
//  Copyright © 2016年 MAC. All rights reserved.
//

#import "CSWMyLotteryController.h"

#import "CSWSettingViewController.h"

#import "UIImage+Image.h"

@interface CSWMyLotteryController ()
@property (weak, nonatomic) IBOutlet UIButton *loginBtn;

@end

@implementation CSWMyLotteryController

- (void)viewDidLoad{
    [super viewDidLoad];
    
    [self setUpNavBar];
}

// 设置导航条的内容
- (void)setUpNavBar
{
    // 导航条左边按钮
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setTitle:@"客服" forState:UIControlStateNormal];
    [btn setImage:[UIImage imageNamed:@"FBMM_Barbutton"] forState:UIControlStateNormal];
    [btn sizeToFit];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:btn];
    
    // 导航条右边按钮
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageWithOriginalImageName:@"Mylottery_config"] style:0 target:self action:@selector(setting)];
}

- (void)setting{
    
    CSWSettingViewController *setVc = [[CSWSettingViewController alloc] init];
    setVc.hidesBottomBarWhenPushed = YES;   //设置隐藏底部TabBar；
    [self.navigationController pushViewController:setVc animated:YES];
}

@end
